package com.rd.controller;

import com.rd.dto.Result;
import com.rd.entity.ShopType;
import com.rd.service.ShopTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/shop-type")
public class ShopTypeController {

    @Resource
    private ShopTypeService typeService;

    @GetMapping("list")
    public Result queryTypeList() throws Exception {
        return typeService.queryTypeList();
    }
}
